//
//  counter.m
//  counter
//
//  Created by apple on 15/8/3.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "counter.h"

@implementation counter

-(void)add
{
    _result = _a + _b;
}

-(void)decrease
{
    _result = _a - _b;
}

-(void)multiplication
{
    _result = _a * _b;
}

-(void)division
{
    if (_b == 0) {
        NSLog(@"出错来，分母不能为零");
    }
    else
    {
        _result = _a / _b;
    }
}

-(void)printCore
{
    NSLog(@"%d",_result);
}
@end
